# -*- Python -*-

Import('*')
from HwDbg_init import *

env = HWDBG_env.Clone()

libName = "AMDTBaseTools"
if (env['HWDBG_build'] == 'debug'):
    libName = "AMDTBaseTools_d"

env.Append( CPPPATH = [ 
	".",
	"./src/",
	env['HWDBG_commonproj_dir'],
	env['HWDBG_common_dir']
])

UseGtk(env)

sources = \
[
	"src/gtIAllocationFailureObserver.cpp",
	"src/gtASCIIString.cpp",
	"src/gtASCIIStringTokenizer.cpp",
	"src/gtAssert.cpp", 
	"src/gtIAssertionFailureHandler.cpp",
	"src/gtList.cpp", 
	"src/gtMap.cpp", 
	"src/gtRedBlackTree.cpp",
	"src/gtSingeltonsDelete.cpp",
	"src/gtString.cpp", 
	"src/gtStringTokenizer.cpp", 
	"src/gtVector.cpp"
]
	
# Creating object files	
objFiles = env.SharedObject(sources)

# Creating shared libraries
soFiles = env.SharedLibrary(
    target = libName,
    source = objFiles)

# Installing libraries
libInstall = env.Install(
	dir = env['HWDBG_lib_dir'],
	source = (soFiles))

Return('libInstall')
